package com.whnk.attendance.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.whnk.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 日常报表查询条件
 * @author 97224
 */
public class DailySignQueryVo implements Serializable {

    /** 身份证 */
    @ApiModelProperty(value = "身份证")
    private String empId;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    private String empNm;

    /**
     * 开始年月
     */
    @NotBlank
    @ApiModelProperty(value = "开始年月", example = "2021-01", required = true)
    @JsonFormat(pattern = "yyyy-MM")
    private Date startMonth;

    /**
     * 结束年月
     */
    @NotBlank
    @ApiModelProperty(value = "结束年月", example = "2021-10", required = true)
    @JsonFormat(pattern = "yyyy-MM")
    private Date endMonth;

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public String getEmpNm() {
        return empNm;
    }

    public void setEmpNm(String empNm) {
        this.empNm = empNm;
    }

    public Date getStartMonth() {
        return startMonth;
    }

    public void setStartMonth(Date startMonth) {
        this.startMonth = startMonth;
    }

    public Date getEndMonth() {
        return endMonth;
    }

    public void setEndMonth(Date endMonth) {
        this.endMonth = endMonth;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("empId", getEmpId())
                .append("empNm", getEmpNm())
                .append("startMonth", getStartMonth())
                .append("endMonth", getEndMonth())
                .toString();
    }
}
